row = 1
while row <= 5:
    col = 1
    while col <= row:
        print("★", end=' ')
        col = col + 1

    # 换行
    print("")
    row += 1
